package com.wang.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.mapper.AddAutoLinkMapper;
import com.wang.pojo.AddAutoLink;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AddAutoLinkServiceImpl extends ServiceImpl<AddAutoLinkMapper,AddAutoLink> implements AddAutoLinkService {
    @Autowired
    private AddAutoLinkMapper addAutoLinkMapper;



    @Override
    public AddAutoLink selectByDevGId(String devGId) {
        return addAutoLinkMapper.selectOne(new LambdaQueryWrapper<AddAutoLink>().eq(AddAutoLink::getDevGId,devGId));
    }
}
